package com.cnswhy.cloud.common.core.entity;

import java.util.HashMap;

public class CnswhyResponse  extends HashMap<String, Object> {

    public CnswhyResponse message(String message) {
        this.put("message", message);
        return this;
    }

    public CnswhyResponse data(Object data) {
        this.put("data", data);
        return this;
    }

    @Override
    public CnswhyResponse put(String key, Object value) {
        super.put(key, value);
        return this;
    }

    public String getMessage() {
        return String.valueOf(get("message"));
    }

    public Object getData() {
        return get("data");
    }
}
